# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION

require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  config.action_controller.session = {
    :session_key => '_tomatime_session',
    :secret      => '3ec871ab32095a0fdfb58ea9d0e444931ea8b40603491914f174a7db3a8bb5a24d8ed653b67a8bac46f1f3c33dcfac52efc6b2715b457b06c4b7269fdee0da5a'
  }
  
  config.action_mailer.raise_delivery_errors = true

  config.action_mailer.delivery_method = :smtp

  config.action_mailer.smtp_settings = {
    :address  => "127.0.0.1",
    :port  => 25, 
    :domain  => 'tomatime.com'
      }
      
  config.active_record.observers = :usuario_observer
end